import ibm.cognos.imt.CogReport;
import ibm.cognos.imt.DataItem;

/**
 * Created with IntelliJ IDEA.
 * User: eric
 * Date: 4/23/14
 * Time: 11:09 AM
 * To change this template use File | Settings | File Templates.
 */
public class SampleReport extends CogReport {
    private DataItem revenue = dataItem("[Sales (query)].[Sales].[Revenue]");
    private DataItem country = dataItem("[Sales (query)].[Sales].[Country]");
    private DataItem year = dataItem("[Sales (query)].[Sales].[Year]");

//    @Override
//    public Collection desc() {
//        ibm.cognos.imt.List list1 = list(revenue, country);
//        PieChart pie1 = pieChart(revenue.like(Measure.class), country.like(Slices.class), year.like(Categories.class));
//        return Arrays.asList(list1, pie1);
//    }
//
//    public static void main(String[] args) {
//        SampleReport report = new SampleReport();
//        String spec = report.modelPath("").getSpec();
//        System.out.println(spec);
//    }

}
